#include <stdio.h>
#include <math.h>

int main() {
	int a, b;
	scanf("%d%d", &a, &b);

	int z = a % b, v = a / b;

	for (int i = 0; i < b - z; i ++ ) {
		printf("%d ", v);
	}

	for (int i= 0; i < z; i ++ )
		printf("%d ", v + 1);

	return 0;
}
